import type { PageParams } from '@/types/globa'
import type { HotResult } from '@/types/hot'
import { http } from '@/utils/http'

// 首页-热门推荐
type HotParams = PageParams & { subType?: string }
/**
 *
 * @param url 请求地址
 * @param data 页码条数
 * @param subType 推荐类型
 * @returns 推荐列表
 */
export const hotRecommendAPI = (url: string, data?: HotParams) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
